package com.rd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rd.pojo.Admin;
import com.rd.pojo.Role;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qiufenfen
 * @since 2023-10-26
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户id获取权限列表
     *  @param adminId 用户id
     *  @return
     *  */
    List<Role> getRoles(Integer adminId);

    List<Admin> selectRoleByUserId(Integer id);
}
